<admintpl file="header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:U('Sysbannerkind/index')}">轮播图分类列表</a></li>
		<li><a href="{:U('Sysbannerkind/add')}">添加分类</a></li>
		<li class="active"><a href="javascript:;">编辑分类</a></li>
	</ul>
	<form method="post" class="form-horizontal js-ajax-form" action="{:U('Sysbannerkind/edit_post')}">
		<fieldset>
			<div class="control-group">
				<label class="control-label"><b style="color:red;">* </b> 分类ID</label>
				<div class="controls">
					<input type="text" name="kind_id" value="{$sys.kind_id}" disabled>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"><b style="color:red;">* </b> 分类名称</label>
				<div class="controls">
					<input type="text" name="kind_name"  value="{$sys.kind_name}">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"><b style="color:red;">* </b> 城市</label>
				<div class="controls">
					<select name="city_id" id="city_id" onchange="cityname()">
						<option value="">请选择</option>
						<foreach name="city" item="vo">
							<option value="{$vo.city_id}"  <if condition="$vo['city_id'] eq $sys['city_id']">selected</if>>{$vo.city_name}</option>
						</foreach>
						<input type="hidden" id="city_name" name="city_name" value="{$sys.city_name}">
					</select>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">分类链接</label>
				<div class="controls">
					<input type="text" name="kind_link" value="{$sys.kind_link}">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"> 备注说明</label>
				<div class="controls">
					<textarea name="remark" rows="2" cols="20" id="content" class="inputtext" style="height: 100px; width: 500px;">{$sys.remark}</textarea>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">{:L('STATUS')}</label>
				<div class="controls">
					<if condition="$sys.use_flg eq 1">
						<label class="radio inline" for="active_true"><input type="radio" name="use_flg" value="1" checked  />{:L('ENABLED')}</label>
						<label class="radio inline" for="active_false"><input type="radio" name="use_flg" value="0"  >{:L('DISABLED')}</label>
					<else />
						<label class="radio inline" for="active_true"><input type="radio" name="use_flg" value="1" />{:L('ENABLED')}</label>
						<label class="radio inline" for="active_false"><input type="radio" name="use_flg" value="0" checked >{:L('DISABLED')}</label>
					</if>
				</div>
			</div>
		</fieldset>
		<div class="form-actions">
			<input type="hidden" name="id" value="{$sys.id}">
			<button type="submit" class="btn btn-primary js-ajax-submit" >{:L('EDIT')}</button>
			<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
		</div>
	</form>
</div>
<script>
    function pagename(){
        var name = $("#page_key").find("option:selected").text();
        $("#page_name").val(name);
    }
    function cityname(){
        var name = $("#city_id").find("option:selected").text();
        $("#city_name").val(name);
    }
</script>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>